<div id="content_main">
	<div class="title">
		<?php echo $content[0]->news_title;?>
	</div>
	<div class="info">
        <img src="<?php echo base_url() ?>static/images/icon/clock-icon.png" /> <?php echo $content[0]->publish_date; ?>
        <img src="<?php echo base_url() ?>static/images/icon/label-icon.png" class="label" />
        <?php
        $tag = $content[0]->news_tag;
        $arrTag = explode(",", $tag);
        $html = "";
        for($j=0; $j<count($arrTag)-1; $j++){
            $html .= "<a href='/tag/" . trim($arrTag[$j]) . "'>" . trim($arrTag[$j]) . "</a> , ";
        }
        $html .= "<a href='/tag/" . trim($arrTag[count($arrTag)-1]) . "'>" . trim($arrTag[count($arrTag)-1]) . "</a>";
        echo $html;
        ?>
    </div>
    <div class="content">
    	<?php echo $content[0]->long_desc; ?>
    </div>
    <div class="footerDetail">
        <div class="box_share">
            <a href="#" title="Chia sẻ bài viết lên Facebook"><img src="<?php echo base_url() ?>static/images/icon/facebook-share.png"></a>
            <a href="#" title="Chia sẻ bài viết lên Google Plus"><img src="<?php echo base_url() ?>static/images/icon/google-share.png"></a>
            <a href="#" title="Chia sẻ bài viết lên Twitter"><img src="<?php echo base_url() ?>static/images/icon/twitter-share.png"></a>
        </div>  
        <div class="clear_float"></div>
    </div>
    <div class="relatedBox">
        <h2>Bài viết liên quan</h2>
        <?php
        $sizeRelate = count($listRelateNews);
        for($i=0; $i<$sizeRelate; $i++){
            echo "<div class='relatedPost margin-right'>"
                . "<a href='/pages/" . $listRelateNews[$i]->news_id . "'><img src='" . $listRelateNews[$i]->image_thumb . "'></a><br>"
                . "<a href='/pages/" . $listRelateNews[$i]->news_id . "'>" . $listRelateNews[$i]->news_title . "</a></div>";
        }
        ?>
        <div class="clear_float"></div>
    </div>
</div>